/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-image:url('img/credy.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Alternative background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.my-account-page {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.8s ease-out;
}

.container {
    width: 100%;
}

.login-wrapper {
    position: relative;
}

.login-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px 40px 50px 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Logo Styles */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    animation: logoGlow 2s ease-in-out infinite alternate;
    overflow: hidden;
}

.logo-image {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 50%;
}

.cname {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.company-tagline {
    color: #666;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h3 {
    color: #06b623;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-control {
    width: 100%;
    padding: 18px 16px 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: #2a5d8f;
    box-shadow: 0 0 0 3px rgba(42, 93, 143, 0.1);
}

.form-control:focus + .floating-label,
.form-control.has-value + .floating-label {
    top: 8px;
    font-size: 12px;
    color: #2a5d8f;
    font-weight: 600;
}

.floating-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
    font-weight: 400;
}

.login-options {
    text-align: center;
    margin: 30px 0;
}

.forgot-password {
    color: #2a5d8f;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #1e3c72;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5d8f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #1a3461 0%, #25527d 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading {
    background: #666;
    cursor: not-allowed;
}

.login-btn.success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.security-notice {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.security-notice small {
    color: #888;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.security-notice small::before {
    content: '🔒';
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoGlow {
    from {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    to {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-form {
        padding: 30px 30px 40px 30px;
        margin: 0 20px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo-image {
        width: 60px;
        height: 60px;
    }
    
    .cname {
        font-size: 24px;
    }
    
    .login-header h3 {
        font-size: 28px;
    }
    
    .form-control {
        padding: 16px 14px 10px 14px;
        font-size: 15px;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-form {
        padding: 25px 25px 30px 25px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .cname {
        font-size: 22px;
    }
    
    .login-header h3 {
        font-size: 24px;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
}

/* Professional styling additions */
.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Focus ring for accessibility */
.form-control:focus-visible {
    outline: 2px solid #2a5d8f;
    outline-offset: 2px;
}

.login-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}