/* =======================================
   Auth Pages (Login & Register) CSS
   ======================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #e8e8e8;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ===== Login Wrapper ===== */
.login-wrapper {
    width: 100%;
    max-width: 500px;
}

/* ===== Register Wrapper ===== */
.register-wrapper {
    width: 100%;
    max-width: 600px;
}

/* ===== Logo Link ===== */
.logo-link {
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
    padding: 0;
}

.logo-link:hover .header-logo {
    transform: scale(1.1);
}

.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    display: block;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header-link:hover .header-logo {
    transform: scale(1.1);
}

.header::before,
.header::after {
    content: '🍃';
    position: absolute;
    font-size: 80px;
    opacity: 0.3;
}

.header::before {
    top: 10px;
    left: 20px;
    transform: rotate(-20deg);
}

.header::after {
    top: 20px;
    right: 20px;
    transform: rotate(20deg);
}

.header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.header p {
    font-size: 14px;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

/* ===== Form Container ===== */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.form-group i {
    color: #667eea;
    font-size: 18px;
    width: 40px;
    text-align: center;
}

.form-group input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input::placeholder {
    color: #999;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #667eea;
}

/* ===== Error Messages ===== */
.error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.error.show {
    display: block;
}

/* ===== Success Messages ===== */
.success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.success.show {
    display: block;
}

/* ===== Forgot Password Link ===== */
.forgot-password {
    text-align: right;
    margin-bottom: 30px;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ===== Login Button ===== */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #5cb85c 0%, #4cae4c 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 184, 92, 0.3);
}

/* ===== Register Button ===== */
.btn-register {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ===== Links ===== */
.register-link,
.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.register-link a,
.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

.register-link a:hover,
.login-link a:hover {
    text-decoration: underline;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .header h1 {
        font-size: 28px;
    }

    .form-container {
        padding: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
