/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

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

.environment-info {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.environment-text {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.environment-help {
    margin: 0;
}

.environment-help a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

.environment-help a:hover {
    color: white;
}

/* Loading */
.loading-container {
    padding: 60px 30px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Auth Container */
.auth-container, .deletion-container, .success-container, .error-container {
    padding: 40px 30px;
}

.auth-card {
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 15px;
    color: #333;
}

.auth-card p {
    margin-bottom: 30px;
    color: #666;
}

/* Email Form */
.email-form {
    margin-top: 30px;
    text-align: left;
}

.email-form input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.email-form input:focus {
    outline: none;
    border-color: #667eea;
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    overflow: hidden;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-initial {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.user-details h3 {
    margin-bottom: 5px;
    color: #333;
}

.user-details p {
    color: #666;
    font-size: 14px;
}

/* Warning Section */
.warning-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.warning-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.warning-section h3 {
    color: #856404;
    margin-bottom: 15px;
}

.warning-section p {
    color: #856404;
    margin-bottom: 15px;
}

.warning-section ul {
    color: #856404;
    padding-left: 20px;
}

.warning-section li {
    margin-bottom: 8px;
}

/* Confirmation Section */
.confirmation-section {
    margin-bottom: 30px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    transition: all 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Final Confirmation */
.final-confirmation {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.final-confirmation p {
    margin-bottom: 15px;
    font-weight: 600;
}

.final-confirmation input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-weight: bold;
}

.final-confirmation input:focus {
    outline: none;
    border-color: #ff6b6b;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin: 5px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ff6b6b;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #ff5252;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: #667eea;
    text-decoration: underline;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.action-buttons .btn {
    flex: 1;
    margin: 0;
}

/* Success and Error */
.success-container, .error-container {
    text-align: center;
}

.success-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.success-container h2 {
    color: #28a745;
    margin-bottom: 15px;
}

.error-container h2 {
    color: #dc3545;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin: 0;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .auth-container, .deletion-container, .success-container, .error-container {
        padding: 30px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
}
