/* Ultra Modern Animated SignUp Page with Book Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.signup-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fef2f2;
}

/* Hide animated book background elements */
body.signup-body::before,
body.signup-body::after {
    display: none;
}

/* Hide floating book icons */
.book-icon-1,
.book-icon-2,
.book-icon-3,
.book-icon-4,
.book-icon-5,
.book-icon-6 {
    display: none;
}

/* Hide floating pages animation */
.floating-pages {
    display: none;
}

.signup-page-container {
    width: 100%;
    max-width: 1150px;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Remove book spine and animated border */
.signup-page-container::before,
.signup-page-container::after {
    display: none;
}

.signup-image {
    display: none;
}

.signup-form-container {
    padding: 55px 60px;
    display: flex;
    flex-direction: column;
    background: transparent;
    position: relative;
}

.signup-form-container h2 {
    font-size: 38px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.2;
    position: relative;
}

.signup-form-container h2::before,
.signup-form-container h2::after {
    display: none;
}

.signup-form-container h2 span {
    font-size: 18px;
    color: #000000;
    font-weight: 500;
    display: block;
    margin-top: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0;
}

.signin-link {
    text-align: center;
    margin-bottom: 35px;
    font-size: 14px;
    color: #000000;
    line-height: 1.6;
}

.signin-link a {
    color: #a51c30;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.signin-link a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a51c30, #b91c1c);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.signin-link a:hover {
    color: #b91c1c;
    transform: translateY(-2px);
}

.signin-link a:hover::after {
    width: 100%;
}

/* Form Grid Layout */
.signup-form-container form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 28px;
}

.signup-form-container .form-group {
    margin-bottom: 0;
    position: relative;
}

.signup-form-container .form-group:last-of-type {
    grid-column: 1 / -1;
    text-align: center;
}

.signup-form-container .form-group.full-width {
    grid-column: 1 / -1;
}

.signup-form-container .form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #000000;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
    position: relative;
}

.signup-form-container .form-group label::before {
    display: none;
}

.signup-form-container .form-group:focus-within label {
    color: #a51c30;
}

.signup-form-container .form-group:focus-within label::before {
    opacity: 1;
    transform: scale(1.2);
}

.signup-form-container .form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    color: #000000;
    font-family: inherit;
    line-height: 1.5;
}

.signup-form-container .form-control:hover {
    border-color: #cbd5e0;
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.signup-form-container .form-control:focus {
    outline: none;
    border-color: #a51c30;
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(220, 38, 38, 0.1),
        0 8px 20px rgba(220, 38, 38, 0.15);
    transform: translateY(-3px);
}

.signup-form-container .form-control::placeholder {
    color: #94a3b8;
    font-size: 14px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.signup-form-container .form-control:focus::placeholder {
    opacity: 0.5;
}

.signup-form-container select.form-control {
    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='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.signup-form-container .text-danger {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
    line-height: 1.4;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.signup-form-container .form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 20px 24px;
    background: rgba(247, 250, 252, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    grid-column: 1 / -1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.signup-form-container .form-check:hover {
    border-color: #cbd5e0;
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.signup-form-container .form-check-input {
    margin-top: 3px;
    margin-right: 14px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #a51c30;
    flex-shrink: 0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.signup-form-container .form-check-input:hover {
    transform: scale(1.1);
}

.signup-form-container .form-check-label {
    font-size: 14px;
    color: #000000;
    line-height: 1.7;
    margin: 0;
}

.signup-form-container .form-check-label a {
    color: #a51c30;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.signup-form-container .form-check-label a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #a51c30, #b91c1c);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.signup-form-container .form-check-label a:hover {
    color: #b91c1c;
    transform: translateY(-2px);
}

.signup-form-container .form-check-label a:hover::after {
    width: 100%;
}

.signup-form-container .btn-primary {
    width: 50%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #a51c30 0%, #b91c1c 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 20px rgba(220, 38, 38, 0.3),
        0 0 0 0 rgba(220, 38, 38, 0.4);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

.signup-form-container .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.signup-form-container .btn-primary:hover::before {
    width: 400px;
    height: 400px;
}

.signup-form-container .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.signup-form-container .btn-primary:hover::after {
    left: 100%;
}

.signup-form-container .btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 30px rgba(220, 38, 38, 0.4),
        0 0 0 8px rgba(220, 38, 38, 0.1);
}

.signup-form-container .btn-primary:active {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 15px rgba(220, 38, 38, 0.3),
        0 0 0 4px rgba(220, 38, 38, 0.1);
}

.signup-form-container .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #a51c30;
}

/* Modal Styles */
.modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #a51c30 0%, #b91c1c 100%);
    color: white;
    border-radius: 24px 24px 0 0;
    padding: 28px 35px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 24px;
    color: white;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.modal-header .close {
    color: white;
    opacity: 0.9;
    font-size: 32px;
    font-weight: 300;
    text-shadow: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.modal-header .close:hover {
    opacity: 1;
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 35px 35px;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
}

.modal-body::-webkit-scrollbar {
    width: 10px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #a51c30 0%, #b91c1c 100%);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #a51c30 100%);
}

.terms-section {
    margin-bottom: 35px;
}

.terms-section h3 {
    color: #a51c30;
    font-size: 22px;
    margin-top: 28px;
    margin-bottom: 14px;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    padding-left: 15px;
}

.terms-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: linear-gradient(135deg, #a51c30 0%, #b91c1c 100%);
    border-radius: 2px;
}

.terms-section h4 {
    color: #b91c1c;
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.terms-section p {
    color: #475569;
    line-height: 1.9;
    margin-bottom: 18px;
    font-size: 15px;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 24px 35px;
    background: #f8fafc;
}

.modal-footer .btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    border: none;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.modal-footer .btn-secondary:hover {
    background: linear-gradient(135deg, #475569 0%, #334155 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(100, 116, 139, 0.4);
    color: white;
}

/* Validation Summary */
.signup-form-container .text-danger[data-valmsg-summary="true"],
.signup-form-container .validation-summary-errors {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 24px;
    color: #a51c30;
    font-size: 14px;
    line-height: 1.6;
    grid-column: 1 / -1;
    animation: slideIn 0.4s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.signup-form-container .validation-summary-errors ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.signup-form-container .validation-summary-errors li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.signup-form-container .validation-summary-errors li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #a51c30;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
    .signup-form-container {
        padding: 45px 40px;
    }
    
    .signup-form-container form {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    
    .signup-form-container .form-group.full-width {
        grid-column: 1;
    }
    
    .signup-form-container .form-check {
        grid-column: 1;
    }
    
    .signup-form-container .btn-primary {
        grid-column: 1;
    }
    
    .signup-form-container h2::before,
    .signup-form-container h2::after {
        display: none;
    }
}

@media (max-width: 600px) {
    body.signup-body {
        padding: 20px 10px;
    }
    
    .signup-page-container {
        max-width: 100%;
        border-radius: 24px;
    }
    
    .signup-form-container {
        padding: 40px 32px;
    }
    
    .signup-form-container h2 {
        font-size: 32px;
    }
    
    .signup-form-container h2 span {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    body.signup-body {
        padding: 0;
        background: #fef2f2;
    }
    
    body.signup-body::before,
    body.signup-body::after {
        display: none;
    }
    
    .signup-page-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .signup-form-container {
        padding: 36px 28px;
    }
    
    .signup-form-container h2 {
        font-size: 28px;
    }
    
    .signup-form-container h2 span {
        font-size: 15px;
    }
    
    .modal-body {
        padding: 28px 24px;
    }
    
    .modal-header {
        padding: 24px 28px;
    }
    
    .signup-form-container .form-control {
        padding: 14px 18px;
    }
    
    .signup-form-container .btn-primary {
        padding: 16px 28px;
        font-size: 16px;
    }
    
    .signup-form-container .form-group label {
        padding-left: 0;
    }
}
