/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
*, :after, :before { box-sizing: border-box; border: 0 solid #e2e8f0; }
a { background-color: transparent; color: inherit; text-decoration: inherit; }

/* -------------------------------------------
   ESTILOS DE LA PLANTILLA DE GOOGLE DRIVE 
------------------------------------------- */
:root {
    --drive-blue: #4285F4;
    --drive-green: #0F9D58;
    --drive-yellow: #FFBA00;
    --drive-red: #DB4437;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --background: #ffffff;
    --surface: #f8f9fa;
    --border-color: #dadce0;
    --shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    --shadow-elevated: 0 2px 10px 0 rgba(60, 64, 67, 0.3);
    --border-radius: 8px;
}

html, body {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

#main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#outerContainer {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#innerContainer {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    max-width: 480px;
}

#innerContainer:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
}

#drive-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.drive-logo-text {
    font-family: 'Google Sans', sans-serif;
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 500;
}

#accessDeniedIcon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background-color: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#accessDeniedHeader {
    font-family: 'Google Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

#message {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

#requestButton {
    background-color: var(--drive-blue);
    color: white;
    font-family: 'Google Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3);
}

#requestButton:hover {
    background-color: #3367d6;
    box-shadow: 0 2px 4px rgba(60, 64, 67, 0.3);
}

#requestButton:active {
    background-color: #2a56c6;
}

#content-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s;
}

.loader {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}

.loader-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    animation: loader 1.5s infinite ease-in-out;
}

.loader-dot:nth-child(1) { background-color: var(--drive-blue); animation-delay: 0s; left: 0; }
.loader-dot:nth-child(2) { background-color: var(--drive-red); animation-delay: 0.2s; left: 17px; }
.loader-dot:nth-child(3) { background-color: var(--drive-yellow); animation-delay: 0.4s; left: 34px; }
.loader-dot:nth-child(4) { background-color: var(--drive-green); animation-delay: 0.6s; left: 51px; }

@keyframes loader {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@media (max-width: 600px) {
    #innerContainer { padding: 30px 20px; }
    #accessDeniedHeader { font-size: 20px; }
    #message { font-size: 14px; }
}

/* -------------------------------------------
   EFECTO DE CARGA (SPINNER) EN EL BOTÓN
------------------------------------------- */
.spinner-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}