* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4ecfb 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Header & Navigation - KEEPING AS IS */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

nav img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: #1d5261;
    margin-left: 10px;
}

/* Navigation links */
.container {
    display: flex;
    gap: 25px;
    align-items: center;
}

.container a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    color: #1d5261;
    padding: 8px 16px;
    border-radius: 5px;
    border-bottom: 2px solid #1d5261;
}

.login-btn:hover {
    color: #36ba80;
    border-bottom: 2px solid #36ba80;
}

.register-btn {
    background-color: #36ba80;
    border-radius: 5px;
    padding: 10px 20px;
    color: white;
    box-shadow: 0 4px 6px rgba(54, 186, 128, 0.2);
}

.register-btn:hover {
    background-color: #2da36f;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(54, 186, 128, 0.3);
}

/* Main Content */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 40px;
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://i.pinimg.com/originals/7e/d8/99/7ed899bcf8a5869315fcd3c99a2ab5bb.png') no-repeat;
    background-size: cover;
    opacity: 0.03;
    z-index: -1;
}

.main {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    animation: fadeIn 0.8s ease;
}

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

.main h1 {
    color: #1d5261;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.main h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #36ba80;
}

/* Form fields */
form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.form-group.valid .input-with-icon {
    border-color: #36ba80;
    box-shadow: 0 0 0 2px rgba(54, 186, 128, 0.1);
}

.form-group.invalid .input-with-icon {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}

label {
    color: #1d5261;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.input-with-icon {
    position: relative;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 1;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 50px;
    background: transparent;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    padding: 0 15px 0 45px;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
}

input[type="text"]:focus + .input-with-icon,
input[type="email"]:focus + .input-with-icon,
input[type="password"]:focus + .input-with-icon {
    border-color: #36ba80;
    box-shadow: 0 0 0 2px rgba(54, 186, 128, 0.2);
    background-color: white;
}

.password-container {
    display: flex;
    align-items: center;
}

.toggle-password {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    padding: 0 15px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #1d5261;
}

.toggle-password:focus {
    outline: none;
    color: #36ba80;
}

.validation-message {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 5px;
    min-height: 1.2em;
    transition: all 0.3s ease;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #36ba80;
}

.remember-me label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
}

.forgot-password a {
    color: #1d5261;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #36ba80;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.cancel-btn {
    flex: 1;
    height: 50px;
    background-color: #f1f1f1;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

.submit-btn {
    flex: 2;
    height: 50px;
    background-color: #1d5261;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(29, 82, 97, 0.2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn:hover {
    background-color: #36ba80;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(54, 186, 128, 0.3);
}

.btn-loading .btn-text {
    opacity: 0.7;
}

.spinner {
    display: none;
    margin-left: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-footer {
    margin-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.95rem;
}

.form-footer a {
    color: #1d5261;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #36ba80;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
}

.divider::before, 
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: #e0e0e0;
}

.divider span {
    padding: 0 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    max-width: 90vw;
    overflow: hidden;
    z-index: 9999;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.notification-content {
    display: flex;
    padding: 15px;
    align-items: center;
    position: relative;
}

.notification-content.success {
    background-color: rgba(54, 186, 128, 0.1);
}

.notification-content.error {
    background-color: rgba(231, 76, 60, 0.1);
}

.notification-content.info {
    background-color: rgba(52, 152, 219, 0.1);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.notification-content.success .notification-icon i {
    color: #36ba80;
}

.notification-content.error .notification-icon i {
    color: #e74c3c;
}

.notification-content.info .notification-icon i {
    color: #3498db;
}

.notification-message {
    flex: 1;
}

.notification-message h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #333;
}

.notification-message p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.notification-close:hover {
    color: #333;
}

.notification-progress {
    height: 3px;
    width: 100%;
    background-color: #f1f1f1;
}

.progress-fill {
    height: 100%;
    width: 0%;
    transition-property: width;
}

.progress-fill.success {
    background-color: #36ba80;
}

.progress-fill.error {
    background-color: #e74c3c;
}

.progress-fill.info {
    background-color: #3498db;
}

/* Accessibility focus states */
a:focus, button:focus, input:focus {
    outline: 2px solid #36ba80;
    outline-offset: 2px;
}

/* ---------------------- */
/* 📱 Responsive Styles   */
/* ---------------------- */

@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px 5%;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .container {
        width: 100%;
        justify-content: center;
    }

    .main {
        padding: 30px 20px;
        margin-top: 70px;
    }

    .main h1 {
        font-size: 2rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .button-group {
        flex-direction: column;
    }

    .notification {
        width: calc(100% - 40px);
    }
}

@media screen and (max-width: 480px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }

    .login-btn, 
    .register-btn {
        width: 100%;
        text-align: center;
    }

    .main {
        padding: 25px 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        font-size: 0.95rem;
        height: 45px;
    }

    .submit-btn,
    .cancel-btn {
        height: 45px;
        font-size: 1rem;
    }

    .remember-me, 
    .forgot-password {
        font-size: 0.85rem;
    }
}