/* Isolated CSS for Login/Register pages - Modern Widget Design */
/* This file contains only styles for login/register pages and does not affect global styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: radial-gradient(circle at center, #1a1a2e, #16213e, #0f3460);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.login-container {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 12px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1;
    overflow: hidden; /* This clips the rotating glow to the widget edges */
}

.login-container::before {
    content: "";
    z-index: -2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    width: 200%;
    height: 40%;
    border-radius: 50%;
    background: conic-gradient(
        transparent 0,
        #ea7575 25%,
        transparent 50%,
        #ea7575 75%,
        transparent 100%
    );
    animation: rotateGlow 30s linear infinite;
    filter: blur(22px);
}

.login-container::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.7), rgba(22, 33, 62, 0.9));
    border-radius: 22px;
    z-index: -1;
}

@keyframes rotateGlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

h1 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.subtitle {
    color: #d0d0ff;
    font-size: 15px;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.85;
    line-height: 1.5;
}

#message {
    display: none;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: 1px solid;
    backdrop-filter: blur(4px);
}

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

label {
    display: block;
    color: #e0e0ff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 15px;
    color: #ffffff;
    transition: all 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: rgba(234, 117, 117, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(234, 117, 117, 0.15);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder,
input[type="number"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #ea7575, #ff8e8e);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(234, 117, 117, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234, 117, 117, 0.4);
}

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

.resend-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.resend-section p {
    font-size: 14px;
    color: #d0d0ff;
    margin-bottom: 10px;
    opacity: 0.85;
}

#resendEmail {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#resendEmail:focus {
    outline: none;
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

#resendEmail::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.resend-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #2196F3, #21cbf3);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.resend-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

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

.link-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.link-text a {
    color: #ea7575;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.link-text a:hover {
    color: #ff8e8e;
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #ea7575;
    transform: translateX(-4px);
}

/* Checkbox styling for terms of service */
.checkbox-group {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ea7575;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    line-height: 1.4;
}

.checkbox-label a {
    color: #ea7575;
    text-decoration: none;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: #ff8e8e;
    text-decoration: underline;
}

/* Resend password input */
#resendPassword {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#resendPassword:focus {
    outline: none;
    border-color: rgba(33, 150, 243, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
}

#resendPassword::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Resend note */
.resend-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* Forgot password section */
.forgot-password-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.forgot-password-section p {
    font-size: 14px;
    color: #d0d0ff;
    margin-bottom: 10px;
    opacity: 0.85;
}

#resetEmail {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 14px;
    color: #ffffff;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

#resetEmail:focus {
    outline: none;
    border-color: rgba(255, 193, 7, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

#resetEmail::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.reset-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(to right, #FFC107, #FFD54F);
    color: #1a1a2e;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.reset-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
        margin: 20px auto;
    }
    
    h1 {
        font-size: 28px;
    }
}
