/* Unified Register Styles - Dark Futuristic Theme */
/* Used for all register pages: translator_register.php and any future register pages */
/* NOTE: This file is for standalone auth pages that don't use the main header/sidebar */
/* NOTE: For pages with main navigation, header/sidebar styles are in global.css */

main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.register-container {
    max-width: 600px;
    margin: 0 auto;
}

h1 {
    color: #00c8ff;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
}

.subtitle {
    color: rgba(184, 197, 214, 0.8);
    margin: 0 0 30px;
    font-size: 16px;
    text-align: center;
    position: relative;
    z-index: 1;
}

form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #00c8ff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 12px;
    background: rgba(10, 14, 26, 0.8);
    color: #b8c5d6;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
    backdrop-filter: blur(5px);
}

input::placeholder,
textarea::placeholder {
    color: rgba(184, 197, 214, 0.5);
}

input:focus,
select:focus,
textarea:focus {
    border-color: #00c8ff;
    box-shadow:
        0 0 20px rgba(0, 200, 255, 0.3),
        inset 0 0 20px rgba(0, 200, 255, 0.1);
    background: rgba(10, 14, 26, 0.9);
    transform: translateY(-2px);
}

select {
    cursor: pointer;
}

select option {
    background: #1a1f2e;
    color: #b8c5d6;
    padding: 10px;
}

/* Language selection and checkbox groups */
.languages-section {
    margin-bottom: 30px;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.language-item {
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.2), rgba(0, 150, 255, 0.1));
    border: 1px solid rgba(0, 200, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #00c8ff;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.language-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    transition: left 0.5s;
}

.language-item:hover::before {
    left: 100%;
}

.language-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.2);
}

.remove-language {
    background: rgba(239, 68, 68, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.remove-language:hover {
    background: #ef4444;
    transform: scale(1.1);
}

.add-language {
    background: linear-gradient(135deg, #00c8ff 0%, #0096cc 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.add-language::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.add-language:hover::before {
    left: 100%;
}

.add-language:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6d6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.3);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid rgba(0, 200, 255, 0.3);
    border-radius: 12px;
    background: rgba(26, 31, 46, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.checkbox-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 255, 0.1), transparent);
    transition: left 0.5s;
}

.checkbox-item:hover::before {
    left: 100%;
}

.checkbox-item:hover {
    border-color: rgba(0, 200, 255, 0.5);
    background: rgba(0, 200, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 200, 255, 0.2);
}

.checkbox-item.selected {
    border-color: #00c8ff;
    background: rgba(0, 200, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 200, 255, 0.3);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 12px;
    position: relative;
    z-index: 1;
}

.checkbox-item label {
    margin: 0;
    color: #b8c5d6;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
    position: relative;
    z-index: 1;
}

/* Form actions container */
.form-actions {
    text-align: center;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}

/* Auth button styling for standalone auth pages */
.auth-btn {
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    display: inline-block;
    cursor: pointer;
}



/* Login button */
.auth-btn.login-btn {
    color: #b8c5d6;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.auth-btn.login-btn:hover {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

/* Register button */
.auth-btn.register-btn {
    color: #b8c5d6;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid rgba(0, 200, 255, 0.3);
}

.auth-btn.register-btn:hover {
    color: #00c8ff;
    background: rgba(0, 200, 255, 0.1);
    border: 1px solid rgba(0, 200, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

/* Legacy button styling for compatibility */
button,
button[type="submit"],
.submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00c8ff 0%, #0096cc 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}



button:hover,
button[type="submit"]:hover,
.submit-btn:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6d6 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 200, 255, 0.4);
}

button:disabled {
    background: rgba(156, 163, 175, 0.5);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Message styling */
.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.1));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Links styling */
.login-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(184, 197, 214, 0.8);
    position: relative;
    z-index: 1;
    font-size: 14px;
}

.login-link a {
    color: #00c8ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.5);
}

.password-requirements {
    font-size: 14px;
    color: rgba(184, 197, 214, 0.6);
    margin-top: 5px;
    position: relative;
    z-index: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        padding: 80px 15px 20px;
    }

    .card {
        padding: 25px 20px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .languages-list {
        gap: 8px;
    }

    main {
        min-height: calc(100vh - 140px) !important;
    }

    .language-item {
        font-size: 13px;
        padding: 6px 12px;
    }

    input,
    select,
    textarea {
        padding: 14px 16px;
        font-size: 15px;
    }

    button,
    button[type="submit"],
    .submit-btn {
        padding: 16px;
        font-size: 16px;
    }
}