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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Common container styles */
.login-container,
.forgot-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 900px;
    max-width: 90%;
    min-height: 500px;
    display: flex;
}

/* Common left panel styles */
.login-left,
.forgot-left {
    background: linear-gradient(135deg, #2980b9 0%, #6dd5fa 100%);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before,
.forgot-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

/* Logo styles */
.logo {
    text-align: center;
    z-index: 1;
}

.logo img {
    width: 200px;
    height: auto;
    margin-bottom: 10px;
}

.logo h1 {
    color: white;
    font-size: 2.5em;
    font-weight: 300;
    margin-bottom: 10px;
}

.logo p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
}

/* Common right panel styles */
.login-right,
.forgot-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Form heading styles */
.login-form h2,
.forgot-form h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
    font-weight: 300;
}

/* Form group styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #2980b9;
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.1);
}

/* Password field container */
.password-container {
    position: relative;
}

.password-container input {
    padding-right: 50px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 5px;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #2980b9;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Form options (login page specific) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

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

.remember-me input[type="checkbox"] {
    width: auto;
}

.forgot-password {
    color: #2980b9;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Button styles */
.login-btn,
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2980b9 0%, #6dd5fa 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 128, 185, 0.3);
}

/* Link styles */
.signup-link,
.back-link {
    text-align: center;
    margin-top: 25px;
    color: #666;
}

.signup-link a,
.back-link a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover,
.back-link a:hover {
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive styles */
@media (max-width: 768px) {
    .login-container,
    .forgot-container {
        flex-direction: column;
        width: 100%;
        margin: 20px;
    }

    .login-left,
    .forgot-left {
        min-height: 200px;
    }

    .login-right,
    .forgot-right {
        padding: 40px 30px;
    }
}

/* Registration Page Specific Styles */
.register-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    overflow: hidden;
    background: white;
}

.register-left {
    flex: 1;
    background: linear-gradient(135deg, #2980b9 0%, #6dd5fa 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.register-logo {
    width: 300px;
    height: 300px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.register-logo img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
}

.welcome-text {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
}

.welcome-subtext {
    font-size: 18px;
    opacity: 0.9;
}

.register-right {
    flex: 1;
    padding: 60px 40px;
    background: white;
}

.form-title {
    font-size: 32px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #FAFAFA;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
    outline: none;
    border-color: #4FC3F7;
    background: white;
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.terms-link {
    color: #4FC3F7;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

.register-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #4FC3F7, #29B6F6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.register-btn:hover {
    background: linear-gradient(135deg, #29B6F6, #0288D1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 195, 247, 0.3);
}

.register-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.signin-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.signin-link a {
    color: #4FC3F7;
    text-decoration: none;
    font-weight: 600;
}

.signin-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #f44336;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #4caf50;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive styles for registration page */
@media (max-width: 768px) {
    .register-container {
        flex-direction: column;
        margin: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .register-left,
    .register-right {
        padding: 40px 30px;
    }
    
    .register-logo {
        width: 200px;
        height: 200px;
    }
    
    .register-logo img {
        width: 180px;
        height: 180px;
    }
    
    .welcome-text {
        font-size: 28px;
    }
    
    .welcome-subtext {
        font-size: 16px;
    }
}