/* Beautiful Modern Login Page - Royal Trust Investments */

/* Full screen modern background */
.task-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Animated background elements */
.task-login::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.task-login::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 200px;
    height: 200px;
    background: linear-gradient(-45deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

/* Modern login card */
.login-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Royal Trust Logo */
.login-form::before {
    content: '';
    display: block;
    width: 140px;
    height: 70px;
    background-image: url('../images/neworange_logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto 24px auto;
    position: relative;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Welcome text like Hostinger */
.login-form .welcome-text {
    text-align: center;
    margin-bottom: 32px;
}

.login-form .welcome-text::before {
    content: 'Hi, 👋';
    display: block;
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 8px;
}

.login-form .welcome-text::after {
    content: 'Welcome to Royal Trust Webmail';
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    line-height: 1.3;
}

/* Hide default title */
.login-form .formtitle {
    display: none;
}

/* Beautiful form styling */
.login-form table {
    width: 100%;
    margin-top: 0;
}

.login-form td.title {
    padding-bottom: 8px;
}

.login-form td.title label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 0.025em;
}

/* Modern input fields */
.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    color: #2d3748;
    position: relative;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #667eea;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-2px);
}

.login-form input::placeholder {
    color: #a0aec0;
    font-size: 15px;
    font-weight: 400;
}

/* Beautiful login button */
.login-form .formbuttons {
    text-align: center;
    margin-top: 32px;
}

.login-form button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 18px 0;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 16px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.login-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 
        0 12px 24px rgba(102, 126, 234, 0.4),
        0 8px 16px rgba(102, 126, 234, 0.3);
    transform: translateY(-3px);
}

.login-form button[type="submit"]:active {
    transform: translateY(-1px);
}

/* Forgot password link */
.login-form .formbuttons::after {
    content: 'Forgotten password?';
    display: block;
    margin-top: 20px;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.login-form .formbuttons::after:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Subtle branding footer */
.login-form .footer-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.login-form::after {
    content: 'Royal Trust Investments • Secure Webmail Access';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Hide default elements */
.task-login .header,
.task-login .footer {
    display: none !important;
}

/* Add welcome text via CSS */
.login-form table::before {
    content: '';
    display: block;
    height: 1px;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 480px) {
    .login-form {
        margin: 20px;
        padding: 36px 28px;
    }
    
    .login-form::before {
        width: 120px;
        height: 60px;
    }
}
