/* =====================================
   SCHOOL REGISTRATION SIGNUP STYLES (ACCENTURE THEME)
   ===================================== */

:root {
    --accent-purple: #0040ff;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F2F2F2;
    --gray-medium: #CCCCCC;
    --gray-dark: #333333;
    --font-main: 'Roboto', sans-serif;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

.particles {
    display: none;
    /* Removing particles for cleaner look */
}

/* Main container */
.signup-container {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Header section */
.header {
    background: var(--white);
    color: var(--black);
    padding: 40px 30px 20px;
    text-align: center;
    border-bottom: 2px solid var(--accent-purple);
}

.icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 400;
}

/* Form styling */
.signup-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: var(--black);
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-medium);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.form-section h3 i {
    color: var(--accent-purple);
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

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

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

/* Labels */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--black);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Input fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
    font-family: inherit;
    color: var(--black);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(0, 64, 255, 0.1);
}

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

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--accent-purple);
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--black);
    color: var(--white);
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
}

/* Error message styling */
.error-message {
    background: #fff0f0;
    color: #d63031;
    border: 1px solid #ff7675;
    padding: 15px;
    margin: 20px 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Login link */
.login-link {
    text-align: center;
    padding: 20px 30px;
    background: var(--gray-light);
    color: var(--gray-dark);
    border-top: 1px solid var(--gray-medium);
}

.login-link a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 700;
}

.login-link a:hover {
    color: var(--black);
    text-decoration: underline;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group a {
    color: var(--accent-purple);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-container {
        margin: 10px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated background particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: -2s;
}

.particle:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 70%;
    animation-delay: -4s;
}

.particle:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -1s;
}

.particle:nth-child(5) {
    width: 90px;
    height: 90px;
    top: 10%;
    left: 60%;
    animation-delay: -3s;
}

/* Float animation for particles */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.3;
    }
}

/* Main container */
.signup-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Header section */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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>');
    background-size: 20px 20px;
    opacity: 0.3;
}

.icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.header h2 {
    font-size: 2rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

/* Form styling */
.signup-form {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: #667eea;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

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

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

/* Labels */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

/* Input fields */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

/* Textarea specific styling */
textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

/* Select dropdown styling */
select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6,9 12,15 18,9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    padding-right: 45px;
}

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

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

.password-toggle:hover {
    color: #667eea;
}

/* Password strength indicator */
.password-strength {
    margin-top: 5px;
    font-size: 0.8rem;
    height: 20px;
}

.password-strength.weak {
    color: #ff4757;
}

.password-strength.medium {
    color: #ffa502;
}

.password-strength.strong {
    color: #2ed573;
}

/* Checkbox styling */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-group a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Error message styling */
.error-message {
    background: #ff4757;
    color: white;
    padding: 15px;
    margin: 20px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: shake 0.5s ease-in-out;
}

/* Shake animation for error */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Login link */
.login-link {
    text-align: center;
    padding: 20px 30px;
    background: #f8f9fa;
    color: #666;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .signup-container {
        margin: 10px;
    }

    .header {
        padding: 20px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .signup-form {
        padding: 20px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .particles {
        display: none;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .signup-form {
        padding: 15px;
    }

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

    .form-section h3 {
        font-size: 1.1rem;
    }
}

/* Loading animation for form submission */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.submit-btn.loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Form validation styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #ff4757;
    animation: shake 0.5s ease-in-out;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #2ed573;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}